package code.rocky.chapter04;

public class Suggest53 {
    public static void main(String[] args) {
//        是
//        蓝蓝的天,
//        $是$
        System.out.println(StringUtils.remove("好是好","好"));
        System.out.println(StringUtils.remove("蓝蓝的天,白云飘","白云飘"));
        System.out.println(StringUtils.remove("$是$","$"));
    }
}

class StringUtils {
    // 删除字符串
    public static String remove(String source, String sub) {
        return source.replaceAll(sub,"");
    }
}
